package org.service.gateway.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.cloud.context.scope.refresh.RefreshScope;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * 
 * ClassName: ZuulConfig <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason: TODO ADD REASON(可选). <br/>
 * date: 2019年10月14日 下午3:17:47 <br/>
 *
 * @author dengqian
 * @version
 * @since JDK 1.8
 */
@Configuration
@ConditionalOnProperty(name = "zuul.store", havingValue = "config", matchIfMissing = false)
public class ZuulConfig {

    @Autowired
    private ZuulConfig zuulConfig;

    @Autowired
    private RefreshScope refreshScope;

    // @EnableApolloConfig
    // public static class ApolloConfig {
    // @Bean(name = "zuul.CONFIGURATION_PROPERTIES")
    // @org.springframework.cloud.context.config.annotation.RefreshScope
    // @ConfigurationProperties("zuul")
    // @Primary
    // public ZuulProperties zuulProperties() {
    // return new ZuulProperties();
    // }
    //
    // }

    @Component
    public class ZuulConfigRreshConfig {

    }

}
